package com.nova.edc.model.system;

import java.util.Date;
import java.util.List;

import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Join;
import com.nova.frame.annotation.Table;
import com.nova.frame.annotation.Transient;
import com.nova.module.filter.annotation.FilterCondition;
import com.nova.module.filter.query.FilterMode;

@Table("t_collectarea")
public class CollectArea {
    @Id
    private Integer id;
    @FilterCondition(filterMode = FilterMode.LIKE)
    private Integer companycode;
    @FilterCondition(filterMode = FilterMode.LIKE)
    private String gatewayid;
    private Integer sensorid;
    private Integer channelid;
    @FilterCondition(filterMode = FilterMode.LIKE)
    private String collectareaname;
    private String lightcode;
    private String memo;
    private Integer scrapped;
    private Date modifystamp;
    @FilterCondition
    private String addby;
    private Date adddate;
    private String modifyby;
    private Date modifydate;
    @FilterCondition
    private Integer customerinfoid;
    private Integer lightid;
    @FilterCondition(filterMode = FilterMode.LIKE)
    @Join(fieldName = "customerinfoid", table = CustomerInfo.class, joinColumn = "CustomerName")
    private String customername;
    @FilterCondition
    @Join(fieldName = "customerinfoid", table = CustomerInfo.class, joinColumn = "GroupCode")
    private String groupcode;
    @Join(fieldName = "lightid", table = DeviceLight.class, joinColumn = "LightName")
    private String lightname;
    @Transient
    private Integer useminute;
    @Transient
    private List<CollectAreaItem> collectAreaItems;
    @FilterCondition
    private Integer devicetype;
    @Transient
    private List<CollectAreaItemAir> collectAreaItemAirs;


    public String getGroupcode() {
        return groupcode;
    }

    public void setGroupcode(String groupcode) {
        this.groupcode = groupcode;
    }

    public List<CollectAreaItemAir> getCollectAreaItemAirs() {
        return collectAreaItemAirs;
    }

    public void setCollectAreaItemAirs(List<CollectAreaItemAir> collectAreaItemAirs) {
        this.collectAreaItemAirs = collectAreaItemAirs;
    }

    public Integer getDevicetype() {
        return devicetype;
    }

    public void setDevicetype(Integer devicetype) {
        this.devicetype = devicetype;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCompanycode() {
        return companycode;
    }

    public void setCompanycode(Integer companycode) {
        this.companycode = companycode;
    }

    public String getGatewayid() {
        return gatewayid;
    }

    public void setGatewayid(String gatewayid) {
        this.gatewayid = gatewayid;
    }

    public Integer getSensorid() {
        return sensorid;
    }

    public void setSensorid(Integer sensorid) {
        this.sensorid = sensorid;
    }

    public Integer getChannelid() {
        return channelid;
    }

    public void setChannelid(Integer channelid) {
        this.channelid = channelid;
    }

    public String getCollectareaname() {
        return collectareaname;
    }

    public void setCollectareaname(String collectareaname) {
        this.collectareaname = collectareaname;
    }

    public String getLightcode() {
        return lightcode;
    }

    public void setLightcode(String lightcode) {
        this.lightcode = lightcode;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getScrapped() {
        return scrapped;
    }

    public void setScrapped(Integer scrapped) {
        this.scrapped = scrapped;
    }

    public Date getModifystamp() {
        return modifystamp;
    }

    public void setModifystamp(Date modifystamp) {
        this.modifystamp = modifystamp;
    }

    public String getAddby() {
        return addby;
    }

    public void setAddby(String addby) {
        this.addby = addby;
    }

    public Date getAdddate() {
        return adddate;
    }

    public void setAdddate(Date adddate) {
        this.adddate = adddate;
    }

    public String getModifyby() {
        return modifyby;
    }

    public void setModifyby(String modifyby) {
        this.modifyby = modifyby;
    }

    public Date getModifydate() {
        return modifydate;
    }

    public void setModifydate(Date modifydate) {
        this.modifydate = modifydate;
    }

    public Integer getCustomerinfoid() {
        return customerinfoid;
    }

    public void setCustomerinfoid(Integer customerinfoid) {
        this.customerinfoid = customerinfoid;
    }

    public String getCustomername() {
        return customername;
    }

    public void setCustomername(String customername) {
        this.customername = customername;
    }

    public Integer getLightid() {
        return lightid;
    }

    public void setLightid(Integer lightid) {
        this.lightid = lightid;
    }

    public String getLightname() {
        return lightname;
    }

    public void setLightname(String lightname) {
        this.lightname = lightname;
    }

    public List<CollectAreaItem> getCollectAreaItems() {
        return collectAreaItems;
    }

    public void setCollectAreaItems(List<CollectAreaItem> collectAreaItems) {
        this.collectAreaItems = collectAreaItems;
    }

    public Integer getUseminute() {
        return useminute;
    }

    public void setUseminute(Integer useminute) {
        this.useminute = useminute;
    }

}
